package com.xiaoyu.cloudmusic.service;

import com.xiaoyu.cloudmusic.dao.MusicMapper;
import com.xiaoyu.cloudmusic.pojo.Song;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MusicServiceImpl implements MusicService{
    @Autowired
    MusicMapper musicMapper;
    @Override
    public List<Song> getAllSong() {
        return musicMapper.getAllSong();
    }

    @Override
    public List<Song> getRandSong(int num) {
        return musicMapper.getRandSong(num);
    }
}
